/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vamprest.api.myexception;

/**
 *
 * @author sav
 */
public class MyException extends Exception {
    protected final static String[] MSG_ERR = {"Wrong parameter", "Wrong DB user login", "Wrong DB user password", "Wrong application user email", "Wrong application user password"};
    public final static int INT_ERR_WRONG_PARAMETER = 0;
    public final static int INT_ERR_WRONG_DB_USER_LOGIN = 1;
    public final static int INT_ERR_WRONG_DB_USER_PWD = 2;
    public final static int INT_ERR_WRONG_APPLI_USER_EMAIL = 3;
    public final static int INT_ERR_WRONG_APPLI_USER_PWD = 4;
    public MyException (MyErrMsg errMsg) {
        super(MSG_ERR[errMsg.intErr]);
    }
    public MyException (String errMsg) {
        super(errMsg);
    }
}
